<?php
class Template {
	public $params;
	public $template_dir;
	public function __construct($params = array()) {
		$this->params = $params;
	}
	public function render($content_file_name){
		include_once $this->template_dir . '/template.php';
	}
	public function printStyles() {
		if (isset($this->params['styles'])) {
			foreach ($this->params['styles'] as $style) {
				?><link rel="stylesheet" href="<?php echo $style['src'];?>" /><?php
			}
		}
	}
}